package com.sayonaragutgut.android.activities;

import com.sayonaragutgut.android.R;
import com.sayonaragutgut.android.activities.ListaVagasActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class Main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TextView tituloAppText = (TextView) findViewById(R.id.tituloAppText);
        tituloAppText.setOnClickListener(clickListener);
    }
    
    private final View.OnClickListener clickListener = new View.OnClickListener() {
    	@Override
    	public void onClick(View v) {
    		inicializaListaVagasActivity();
    	}
    };
    
    private void inicializaListaVagasActivity() {
    	Intent listaVagasIntent = new Intent(this, ListaVagasActivity.class);
		startActivity(listaVagasIntent);
    }
}